package com.netrust.cmsx.core.page;

import java.io.Serializable;

import com.netrust.cmsx.core.config.Global;

public class PageSuper implements Serializable{
	private static final long serialVersionUID = 1188052033633278230L;
	protected Integer pageNum;//第几页
	protected Integer pageSize;
	
	public PageSuper() {
		super();
		pageSize=pageSize!=null?pageSize:Global.Admin_Page_Size;
		pageNum=(pageNum!=null&&pageNum>0)?pageSize:0;
	}
	
	/**
	 * @param pageNum
	 * @param pageSize
	 */
	protected PageSuper(Integer pageNum, Integer pageSize) {
		super();
		this.pageNum = pageNum!=null&&pageNum>0?pageNum-1:0;
		this.pageSize = pageSize!=null?pageSize:Global.Admin_Page_Size;
	}



	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
}
